package com.ruoyi.system.domain.ahs;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * 搜索结果返回值
 *
 * @author 辛凤文
 * @since 1.0
 */
@Data
public class SearchResult implements Serializable {
    private Long code;
    private String resultMessage;
    private List<Product> data;

    public boolean isSuccess(){
       return Objects.nonNull(code) && code == 0;
    }
}
